How to disable directory listing for Jetty's WebAppContext
How to disable directory listing for Jetty’s WebAppContext
\
edit webdefault.xml and set dirAllowed to false
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.mortbay.jetty.servlet.Default</servlet-class>
<init-param>
<param-name>dirAllowed</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
\
Note, if no default descriptor is specified then webdefault.xml usually
included in jetty.jar is used, which allows directory listing.